package com.bsoft.gol.editor.dao;


import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import com.bsoft.gol.editor.editor.EditorQuestionnaireStyle;

import java.util.List;

/**
 * Created by Sangs on 2020/4/3.
 */
public abstract class EditorQuestionnaireStyleDAO extends ctd.persistence.support.hibernate.HibernateSupportDelegateDAO<EditorQuestionnaireStyle> {

    public EditorQuestionnaireStyleDAO() {
        this.setKeyField("questionnaireStyleId");
    }

    @DAOMethod(sql = "from EditorQuestionnaireStyle where deviceType=:deviceType and questionnaireId=:questionnaireId ")
    public abstract EditorQuestionnaireStyle getByQidAndDeviceType(@DAOParam("deviceType") Byte deviceType,@DAOParam("questionnaireId") String questionnaireId);

    @DAOMethod(sql = "from EditorQuestionnaireStyle where questionnaireId  =:questionnaireId")
    public abstract List<EditorQuestionnaireStyle> queryEditorTitleOptionByQId(@DAOParam("questionnaireId") String questionnaireId);




}